export const rules = {
    attName: [
        { required: true, message: '请输入属性名称', trigger: 'blur' }
    ],
    attCode: [
        { required: true, message: '请输入属性编码', trigger: 'blur' },
        { min: 2, max: 20, message: '编码长度2-20位', trigger: 'blur' },
        {pattern:new RegExp(/^[0-9a-zA-Z]{2,}$/,'g'),message:"编码只允许包含字母与数字",trigger: 'blur' }
    ],
    attType:[
        { required: true, message: '请选择属性类型', trigger: 'change' }
    ],
    dataType:[
        { required: true, message: '请选择数据类型', trigger: 'change' }
    ],
    properties:[
        { required: true, message: '值不可为空', trigger: 'change' }
    ]
}